package proxy;

/**
 * 静态代理
 * */
public class StaticProxy implements People{

    Chinese chinese;

    public StaticProxy(Chinese chinese){
        this.chinese = chinese;
    }

    @Override
    public void speak() {
        System.out.println("In Chinese Proxy, before speaking");
        chinese.speak();
        System.out.println("After speaking");
    }
}
